package com.yangl.domain;

/**
 * Created by lyang on 2016/10/19.
 */
public class ResultWrapper  {


    private String code;

    private String message;

    private Object data;

    public ResultWrapper(ResultWrapperEnum app) {
        this.code = app.getCode();
        this.message = app.getMessage();
    }

    public ResultWrapper(ResultWrapperEnum app,Object data) {
        this.code = app.getCode();
        this.message = app.getMessage();
        this.data = data;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}